
<!DOCTYPE html>
<!--

    Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->
<!-- Portions Copyright [2019] [Payara Foundation and/or its affiliates] -->
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <title>logging</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/style.css" rel="stylesheet">
    <script src="https://use.fontawesome.com/96c4d89611.js"></script>
  </head>
  <body>
<table id="doc-title" cellspacing="0" cellpadding="0">
  <tr>
  <td align="left" valign="top">
  <b>logging</b><br />
  </td>
  </tr>
</table>
<hr />

<table width="90%" id="top-nav" cellspacing="0" cellpadding="0">
	<colgroup>
		<col width="12%"/>
		<col width="12%"/>
		<col width="*"/>
	</colgroup>
	<tr>
		<td align="left">
		<a href="instance.html">
			<span class="vector-font"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></span>
			<span style="position:relative;top:-2px;">Previous</span>
		</a>
		</td>

		<td align="left">
		<a href="monitoring.html">
			<span class=" vector-font"><i class="fa fa-arrow-circle-right vector-font" aria-hidden="true"></i></span>
			<span style="position:relative;top:-2px;">Next</span>
		</a>
		</td>

		<td align="right">
		<a href="toc.html">
			<span class=" vector-font"><i class="fa fa-list vector-font" aria-hidden="true"></i></span>
			<span style="position:relative;top:-2px;">Contents</span>
		</a>
		</td>
	</tr>
</table>


<div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p><a id="logging-5asc"></a><a id="GSRFM00270"></a><a id="logging"></a></p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_logging">logging</h2>
<div class="sectionbody">
<div class="paragraph">
<p>capturing information on \{product---name} runtime events</p>
</div>
<div id="sthref2404" class="paragraph">
<p>Description</p>
</div>
<div class="paragraph">
<p>Logging is the process by which \{product---name} captures data about
events that occur during \{product---name} operation. \{product---name}
components and application components generate logging data, which is
saved in the server log, typically domain-dir`/logs/server.log`. The
server log is the first source of information if \{product---name}
problems occur.</p>
</div>
<div class="paragraph">
<p>The server log is rotated when the file reaches the specified size in
bytes, or the specified time has elapsed. The file can also be rotated
manually by using the <code>rotate-log</code> subcommand.</p>
</div>
<div class="paragraph">
<p>In addition to the server log, the domain-dir`/logs` directory contains
two other kinds of logs:</p>
</div>
<div class="ulist">
<ul>
<li>
<p>HTTP service access logs, located in the <code>/access</code> subdirectory</p>
</li>
<li>
<p>Transaction service logs, located in the <code>/tx</code> subdirectory</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>Logging levels can be configured by using the Administration Console or
the <code>set-log-levels</code> subcommand. Additional properties can be set by
using the Administration Console or by editing the <code>logging.properties</code>
file. The default <code>logging.properties</code> file is typically located in
domain-dir`/config`.</p>
</div>
<div class="paragraph">
<p>Although application components can use the Apache Commons Logging
Library to record messages, the platform standard JSR 047 API is
recommended for better log configuration.</p>
</div>
<div id="sthref2405" class="paragraph">
<p>See Also</p>
</div>
<div class="paragraph">
<p><a href="list-log-levels.html#list-log-levels-1"><code>list-log-levels</code>(1)</a>,
<a href="rotate-log.html#rotate-log-1"><code>rotate-log</code>(1)</a>,
<a href="set-log-levels.html#set-log-levels-1"><code>set-log-levels</code>(1)</a></p>
</div>
<div class="paragraph">
<p><a href="asadmin.html#asadmin-1m"><code>asadmin</code>(1M)</a></p>
</div>
</div>
</div>

<hr />

<table width="90%" id="bottom-nav" cellspacing="0" cellpadding="0">
	<colgroup>
		<col width="12%"/>
		<col width="12%"/>
		<col width="*"/>
	</colgroup>
	<tr>		
		<td align="left">
		<a href="instance.html">
			<span class=" vector-font"><i class="fa fa-arrow-circle-left" aria-hidden="true"></i></span>
			<span style="position:relative;top:-2px;">Previous</span>
		</a>
		</td>

		<td align="left">
		<a href="monitoring.html">
			<span class="vector-font"><i class="fa fa-arrow-circle-right vector-font" aria-hidden="true"></i></span>
			<span style="position:relative;top:-2px;">Next</span>
		</a>
		</td>

		<td align="right">
		<a href="toc.html">
			<span class="vector-font"><i class="fa fa-list vector-font" aria-hidden="true"></i></span>
			<span style="position:relative;top:-2px;">Contents</span>
		</a>
		</td>
	</tr>
</table>

<span id="copyright">
        <img src="/resource/reference/img/eclipse_foundation_logo_tiny.png" height="20px" alt="Eclipse Foundation Logo" align="top"/>&nbsp;            
        <span >Copyright&nbsp;&copy;&nbsp;2019,&nbsp;Oracle&nbsp;and/or&nbsp;its&nbsp;affiliates.&nbsp;All&nbsp;rights&nbsp;reserved.</span>
</span>

</body>
</html>
